package cn.cool.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuH
 * @since 2021-01-23
 */
@TableName("cool_user_like_article")
public class UserLikeArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞id
     */
    @TableId(value = "like_id", type = IdType.AUTO)
    private Long likeId;

    /**
     * 点赞用户id
     */
    private Integer userId;

    /**
     * 被点赞文章id
     */
    private Integer artId;

    /**
     * 是否删除 0:未删除 1:删除
     */
    @TableLogic
    private Boolean isDeleted;

    /**
     * 点赞时间
     */
    private Date gmtCreate;

    /**
     * 修改时间
     */
    private Date gmtModified;

    public UserLikeArticle(Long likeId,Integer userId, Integer artId, Boolean isDeleted) {
        this.likeId = likeId;
        this.userId = userId;
        this.artId = artId;
        this.isDeleted = isDeleted;
    }

    public UserLikeArticle(Integer userId, Integer artId, Boolean isDeleted) {
        this.userId = userId;
        this.artId = artId;
        this.isDeleted = isDeleted;
    }

    public Long getLikeId() {
        return likeId;
    }

    public void setLikeId(Long likeId) {
        this.likeId = likeId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getArtId() {
        return artId;
    }

    public void setArtId(Integer artId) {
        this.artId = artId;
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "UserLikeArticle{" +
        "likeId=" + likeId +
        ", userId=" + userId +
        ", artId=" + artId +
        ", isDeleted=" + isDeleted +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
